<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="layout :: htmlhead" th:with="title='流程管理'"></head>
<body class="layui-layout-body">
<script src="/js/parking/basic.js"></script>
<div class="layui-layout layui-layout-admin">
    <!--头-->
    <div th:replace="fragments/head :: header"></div>

    <div class="layui-body" style="margin: 1%">
        <div class="demoTable">
            &nbsp;&nbsp;
        </div>

        <div id="permTable" class="grid">
        </div>
        
		基本信息
		 <hr class="layui-bg-cyan"/>

             <table class="layui-table">
                <thead>
                <tr>
                    <th>id</th>
                    <th>申请类型</th>
                    <th>停车场名称</th>
                    <th>停车场类型</th>
                    <th>创建时间</th>
                    <th>详细信息</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="applyinfo: ${applyInfoList}">
				<td th:text="${applyinfo.id}">id</td>
			    <td th:text="${applyinfo.applyType } =='1' ?'新增' :'年审'">申请类型</td>
			    <td th:text="${applyinfo.name}">名称</td>
			    <td th:text="${applyinfo.type } =='1' ?'公用' :'专用'">停车场类型</td>
				<td th:text="${#dates.format(applyinfo?.createTime,'yyyy-MM-dd HH:mm')}">2000-01-01 10:10</td>
				
                <td th:switch="${applyinfo.state}">
	                <b th:case="0">

	               	 <a  class="layui-btn layui-btn-danger layui-btn-sm"  th:text="撤销"   th:onclick="'javascript:delBasic(\''+${applyinfo.id}+'\');'"></a>
	               	 <a  class="layui-btn layui-btn-normal layui-btn-sm" th:href="@{'/workflow/start/'+${applyinfo.id}}" th:text="开始申办"></a>
	                </b>
	                <b th:case="*">
               		 <a  class="layui-btn layui-btn-sm" th:href="@{'/workflow/viewHisComment/'+${applyinfo.id}}" th:text="查看"></a>
               		</b>
               		<b th:if="${applyinfo.modified == 0}">
               		<a  class="layui-btn layui-btn-primary layui-btn-sm" th:href="@{'/park/modify/'+${applyinfo.id}}" th:text="修改"></a>
                	</b>
                </td>
                
                <td th:switch="${applyinfo.state}">
	                <span th:case="0" class="layui-badge layui-bg-gray">初始</span>
	               	<span th:case="1" class="layui-badge layui-bg-green">审核中</span>
	               	<span th:case="2" class="layui-badge layui-bg-blue">审核完成</span>
	                <span th:case="3" class="layui-badge layui-bg-orange">删除</span>
                </td>
			</tr>
            </tbody>
            </table>
            
    </div>


    <!--底部-->
    <div th:replace="fragments/footer :: footer"></div>
</div>

</body>
</html>